package com.woniu.liuzhougov.itemAndTask.controller;


import com.woniu.liuzhougov.itemAndTask.pojo.CheckStatus;
import com.woniu.liuzhougov.itemAndTask.service.ItemStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("ItemStatusManage")
public class ItemStatusController {

    @Autowired
    private ItemStatusService itemStatusService;


    /**
     * 查询所有 事项 状态
     * @return
     */
    @RequestMapping("/searchAllResult")
    @ResponseBody
    public List<CheckStatus> allItemStatus(){
        List<CheckStatus> statuses = itemStatusService.allStatus();
        return statuses;
    }
}
